import { App } from "../../../src/App";
import { Singleton } from "../../../src/core/Class";

interface MsgInfo{
    flag:number,   // 消息分类 
    type:number,   // 消息类型
    text:string,   // 消息内容
}
class CNoticeSys extends Singleton<CNoticeSys> {
    private _msgList:MsgInfo[] = [];
    protected onInit(){
        if (App.getCfg('test')){
            
        }
    }

    protected onDestroy(){
        this._msgList = [];
        cc.log('destroy notice system end.');
    }
}

const NoticeSys:CNoticeSys = CNoticeSys.getInstance<CNoticeSys>(CNoticeSys);
export default NoticeSys;